<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑商品</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100">
    <div class="min-h-screen">
        <header class="bg-white shadow">
            <div class="max-w-7xl mx-auto py-6 px-4">
                <div class="flex items-center">
                    <a href="#" class="text-gray-500 hover:text-gray-700 mr-4">
                        <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18"></path>
                        </svg>
                    </a>
                    <h1 class="text-2xl font-bold text-gray-900">编辑商品</h1>
                </div>
            </div>
        </header>

        <main class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
            <form class="space-y-6">
                <!-- 基本信息 -->
                <div class="bg-white shadow rounded-lg p-6">
                    <h2 class="text-lg font-medium text-gray-900 mb-4">基本信息</h2>
                    <div class="grid grid-cols-2 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">商品名称</label>
                            <input type="text" class="w-full border rounded-md px-4 py-2" value="三亚5日游">
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">商品分类</label>
                            <select class="w-full border rounded-md px-4 py-2">
                                <option value="1">跟团游</option>
                                <option value="2">自由行</option>
                                <option value="3">一日游</option>
                            </select>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">商品编号</label>
                            <input type="text" class="w-full border rounded-md px-4 py-2 bg-gray-50" value="SP20240101001" readonly>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">库存数量</label>
                            <input type="number" class="w-full border rounded-md px-4 py-2" value="999">
                        </div>
                    </div>
                </div>

                <!-- 价格设置 -->
                <div class="bg-white shadow rounded-lg p-6">
                    <h2 class="text-lg font-medium text-gray-900 mb-4">价格设置</h2>
                    <div class="grid grid-cols-2 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">市场价</label>
                            <div class="relative rounded-md shadow-sm">
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                    <span class="text-gray-500 sm:text-sm">¥</span>
                                </div>
                                <input type="text" class="w-full border rounded-md pl-7 pr-12 py-2" value="4,999.00">
                            </div>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">销售价</label>
                            <div class="relative rounded-md shadow-sm">
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                    <span class="text-gray-500 sm:text-sm">¥</span>
                                </div>
                                <input type="text" class="w-full border rounded-md pl-7 pr-12 py-2" value="3,999.00">
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 商品图片 -->
                <div class="bg-white shadow rounded-lg p-6">
                    <h2 class="text-lg font-medium text-gray-900 mb-4">商品图片</h2>
                    <div class="space-y-4">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">封面图</label>
                            <div class="flex items-center space-x-4">
                                <div class="w-32 h-32 border-2 border-dashed rounded-lg flex items-center justify-center">
                                    <button type="button" class="text-gray-600 hover:text-gray-900">
                                        <svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path>
                                        </svg>
                                    </button>
                                </div>
                                <div class="text-sm text-gray-500">
                                    <p>建议尺寸：800x600px</p>
                                    <p>支持格式：JPG、PNG</p>
                                </div>
                            </div>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">商品轮播图</label>
                            <div class="grid grid-cols-4 gap-4">
                                <div class="w-full h-32 border-2 border-dashed rounded-lg flex items-center justify-center">
                                    <button type="button" class="text-gray-600 hover:text-gray-900">
                                        <svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path>
                                        </svg>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 商品详情 -->
                <div class="bg-white shadow rounded-lg p-6">
                    <h2 class="text-lg font-medium text-gray-900 mb-4">商品详情</h2>
                    <div class="space-y-4">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">行程特色</label>
                            <textarea class="w-full border rounded-md px-4 py-2 h-24">1. 全程五星级酒店住宿
2. 专业导游全程陪同
3. 含三亚往返机票</textarea>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">行程安排</label>
                            <textarea class="w-full border rounded-md px-4 py-2 h-48">第一天：接机 - 入住酒店
第二天：大东海 - 亚龙湾
第三天：天涯海角 - 南山文化旅游区
第四天：西岛 - 椰田古寨
第五天：自由活动 - 送机</textarea>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">费用说明</label>
                            <textarea class="w-full border rounded-md px-4 py-2 h-24">费用包含：往返机票、五星级酒店住宿、景点门票、导游服务
费用不含：个人消费、旅游保险</textarea>
                        </div>
                    </div>
                </div>

                <!-- 其他设置 -->
                <div class="bg-white shadow rounded-lg p-6">
                    <h2 class="text-lg font-medium text-gray-900 mb-4">其他设置</h2>
                    <div class="space-y-4">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">上架状态</label>
                            <div class="space-x-4">
                                <label class="inline-flex items-center">
                                    <input type="radio" name="status" class="h-4 w-4 text-blue-600" checked>
                                    <span class="ml-2">上架</span>
                                </label>
                                <label class="inline-flex items-center">
                                    <input type="radio" name="status" class="h-4 w-4 text-blue-600">
                                    <span class="ml-2">下架</span>
                                </label>
                            </div>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">排序</label>
                            <input type="number" class="w-32 border rounded-md px-4 py-2" value="100">
                            <p class="mt-1 text-sm text-gray-500">数值越大越靠前</p>
                        </div>
                    </div>
                </div>

                <!-- 提交按钮 -->
                <div class="flex justify-center space-x-4">
                    <button type="button" class="px-6 py-2 border rounded-md">取消</button>
                    <button type="submit" class="px-6 py-2 bg-blue-600 text-white rounded-md">保存</button>
                </div>
            </form>
        </main>
    </div>
</body>
</html>